home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / prog / pkone.arj / README.TXT < prev    next >
Text File  |  1994-01-18  |  7KB  |  141 lines

  1.  
  2.  Background on what the demo is about:
  3.  
  4.  I've noticed more and more Clipper programmers are using special libraries
  5.  like "Remote Gilmore", "SilverClip" or "Telepathy" to send files to remote
  6.  locations, and i came up with a idea that may help out these programmers!
  7.  
  8.  The following situation would most likely represent how a typical session
  9.  would take place when sending file(s) to a remote site;
  10.  
  11.  1. Prepare files to send in a zipfile
  12.  2. Place zipfile in holding area
  13.  3. Auto send zipfile with a Clipper application
  14.  4. Remote site receives zipfile
  15.  5. Some poor soul on the remote site has the dreaded task of sorting
  16.     through the zipfile and then sending the files to who they belong to.
  17.  
  18.  * I'd hate to be the poor soul in step five, if thier location is a large
  19.    corporation and the files need to be processed and delivered to many
  20.    employees. Imagine the remote site has 50 persons that files need to be
  21.    sent to, this would eat up alot of someones time, and would be hard to
  22.    devise some scheme to name the files for delivering to the right person.
  23.  
  24.  My idea would go as follows:
  25.  
  26.  1. Prepare files to send in a zipfile
  27.         Insert id information and comments into the local directory of the 
  28.         zipfile. The "id" might represent an entry in the bindery, a 
  29.         internetwork node id, or the users name who should get the file.
  30.  2. Place zipfile in holding area
  31.  3. Auto send zipfile with a Clipper application
  32.  4. Remote site receives zipfile
  33.  5. A Clipper program parses the DnLoad directory for files and
  34.         - Extracts comments and local sending information, that was inserted
  35.           in step one above.
  36.         - Uses the extracted information to deliver file(s) to each user
  37.         - Broadcast message over the network to the node "You have mail" and
  38.           also any special messages that may have been stored in the zipfile.
  39.           (message was stored in the zipfile local directory)
  40.  6. Once the files are copied to said users home directory on the system,
  41.     the Clipper program would remove the zipfile, and also log a entry into
  42.     some sort of mail logfile.
  43.  
  44.  
  45.  To do the above, i use some tricks to make PKware's Pkzip and PkUnzip do 
  46.  some slight of hand for you! A little history is in order, pkzip.exe allows
  47.  you to place a file-wide comment into the top of a zipfile that may be up 
  48.  to 4096 characters in length, and is mostly used by BBS sysops for placing
  49.  advertisments for thier boards into it. Upon unzipping the file it is 
  50.  displayed to standard out, which is usually the console. You could store 
  51.  your information here if you only have a few files. but wait pkzip also 
  52.  allows you to place comments at a deeper area in the zipfile which is 
  53.  known as the "local directory". This is were i have developed code to do
  54.  this for you, within your Clipper utility/program.
  55.  
  56.  
  57.  Example:
  58.  The comment section is broken down to include sections to store
  59.  notes for displaying to whomever is getting the file (which may be sent
  60.  via an network function from a Clipper library such as SEGUE). The
  61.  rest of the local comment would be sectioned into where to send the file,
  62.  (a specific office), and finally the node or user to send the file to at
  63.  the location/office. There is even more room available for other uses.
  64.  You could place several characters into the remaining section and then
  65.  by checking to see if a bit is set or not, do something etc.
  66.  
  67.  Comment: Expenses for November 1993 from Carol Jones
  68.  - The above comment is 43 characters long, so pad it to say 48
  69.  - Next the user enters a code for the sub-location thru a picklist
  70.  
  71.  The string then may be inserted as follows:
  72.     Expenses for November 1993 from Carol Jones    102937
  73.              |                                       |
  74.              |                                       |
  75.     Comment -+                                       |
  76.                                   Sub-location ------+
  77.  
  78.  The remote sites Clipper application would then extract the sub-location
  79.  
  80.  cLocation := alltrim( right(cString,10) )
  81.  cMessage  := substr( ltrim(cString),1,48)
  82.  
  83.  //───── copy file to sub-location
  84.  NETCOPY( cFile,cLocation )
  85.  //───── broadcast message to sub-location
  86.  NSENDMSG( cLocation, cMessage )
  87.  
  88.  
  89.  Message is stored in some sort of holding area if the user i not currently
  90.  logged into the netowork, and once they login the message is delivered!
  91.  
  92.  The user then will get the delivered file(s)
  93.  
  94.  Done!
  95.  
  96.  
  97.  In a real life situation the sender would traverse through a Tbrowse that
  98.  would allow them to tag files, and then enter comments and sub-locations,
  99.  and date to send. Next the information would be entered into a masterfile
  100.  and each night the Clipper program would search the masterfile, for any
  101.  files slated to be sent for the current day. It would create the listfile
  102.  and check to make sure the files still existed. Then the file is sent and
  103.  the remote site's Clipper program would extract and send files to proper
  104.  sub-locations or if a there are invalid sub-locations, or any problems -
  105.  write them to a error data table.
  106.  
  107.  I have developed the disk routines to allow a user to traverse local and
  108.  network drives and directories that also logs files into a mastefile. It
  109.  also checks for duplication entries going to the same desination and will
  110.  alert the operator. My routine looks and operates just like the file
  111.  manager called Norton Commander.
  112.  
  113.  Remember that the demo is focusing on just packing files, and comments -
  114.  and then mimicing the extraction of comments at a remote site..
  115.  
  116.  BTW Once the demo has completed there are two files i erase. By calling
  117.  on UNERASE from Norton Utils version 6 or 7, you can view them and see
  118.  some of the stuff i have done.
  119.  
  120.  
  121.  I have done various operations for PKware/LHA,FlexFile II, FUNCKy II,
  122.  SixCdx and ProVision:Backup with thier abilities to do compression in a
  123.  Clipper application. These tip/tricks and ideas are for sell at low 
  124.  prices. If you would like more information on how to incorporate them
  125.  into your Clipper applications or utilities (install programs also) -
  126.  contact me.
  127.  
  128.  CIS: 70034,2313
  129.  Voice (215)947-3504
  130.  Grumpfish BBS, under Kevin Gallagher (not Kevin S. Gallagher)
  131.  
  132.  I'am also looking for a full-time position for either programming in
  133.  Clipper, or teaching programming techniques of Clipper to any level
  134.  of programmer envolved in Clipper, or just starting out with Clipper.
  135.  
  136.  
  137.  Happy programming
  138.  Kevin S. Gallagher
  139.  
  140.  
  141.